﻿@model IEnumerable<WebShop.Contracts.Product>

<table id="searchResults">
    <tr>
        <th>
            ProductName
        </th>
        <th>
            CategoryID
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.ProductName, "Details", new { id = item.ProductID })
        </td>
        <td>
            @item.Category.CategoryName
        </td>
    </tr>
}

</table>
